package com.kingyun.gpsinspection.purificationservice.facade.service.iam.qhse;

import com.alibaba.fastjson.JSONObject;
import com.kingyun.gpsinspection.purificationservice.facade.model.BootstrapSearchBean;
import com.kingyun.gpsinspection.purificationservice.facade.model.iam.qhse.ContingencyDrill;

/**
 * @version V1.0
 * @Package com.cqhilink.iot.integratedapplicationmanagement.services.innerservice.qhse
 * @Description: ${TODO}(应急演练服务层)
 * @author: lutianbo
 * @date: 2016/11/29,0029
 */

public interface ContingencyDrillService{
    /**
     *根据ids删除应急演练
     * @param contingencyDrillId
     * @return
     */
    int deleteByPrimaryKey(String[] contingencyDrillId);
    /**
     * 新增应急演练
     * @param record
     * @param uploadFiles 需要上传的文件
     * @param deletedFiles hbase中需要删除的文件
     * @return
     */
    int insertSelective(ContingencyDrill record, String uploadFiles, String deletedFiles);

    /**
     * 根据id查询
     * @param contingencyDrillId
     * @return
     */
    ContingencyDrill selectByPrimaryKey(String contingencyDrillId);

    /**
     * 根据id更新应急演练
     * @param record
     * @param uploadFiles 需要上传的文件
     * @param deletedFiles hbase中需要删除的文件
     * @return
     */
    int updateByPrimaryKeySelective(ContingencyDrill record, String uploadFiles, String deletedFiles);

    /**
     * 查询应急演练列表
     * @param searchBean
     * @return
     */
    JSONObject contingencyDrillList(BootstrapSearchBean searchBean);

    /**
     * 判断应急演练名是否存在
     * @param drillName 应急演练名
     * @return
     */
    boolean isExitByName(String drillName);
}
